package storage.transaction.recovery;

import log.LogManager;
import server.SimpleDB;


public interface LogRecord {

	static final int CHECKPOINT = 0, START = 1, COMMIT = 2, ROLLBACK = 3,
			SETINT = 4, SETSTRING = 5, SETBOOLEAN = 6, SETDOUBLE = 7,
			SETFLOAT = 8, SETBYTE = 9, SETLONG = 10, END = 11, SAFE = 12,
			UNDO = 13, REDO = 14;

	static final LogManager logMgr = SimpleDB.logManager();


	int writeToLog();
	int op();
	int txNumber();
	void undo(int txnum);
	void redo(int txnum);
}